﻿namespace Tests
{
    using System;
    using ClientLib;
    using NUnit.Framework;

    [TestFixture]
    class UTestsClient
    {
        [Test, TestCaseSource("clientcases")]
        public void connect(IClient ptestClient, string expected)
        {
            
            string actual="Login^Nick";
            ptestClient.connect(ref actual, expected);
            Assert.AreEqual(expected, actual);

        }
        static object[] clientcases =
        {
            new object[] {new ClientMock(),"connected"}           
          //  new object[] {new Client("http://" + System.Net.Dns.GetHostName() + ":" + 8811+ "/"),"No players online"}            
            
        };
    }
}
